package com.jyu.apts.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name="itemProcessRecordInfo")
public class ItemProcessRecordInfo {
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE)
	long id;//主键
	@Column
	String title;//标题
	@Lob//不使用默认类型longtext
    @Column(columnDefinition="text")
	String description;//描述
	@Column//#号分割的url
	String urls;

	@ManyToOne
	ItemProcessRecord itemProcessRecord;
	
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public long getId() {
		return id;
	}
}
